#pragma once
#include <crow.h>
#include <model/dto/member/member_purchase_record_dto.hpp>
#include <string>
class MemberPurchaseRecordService {
  public:
  static ServiceResult create(MemberPurchaseRecordDTO& dto);
  static ServiceResult
  updateByMemberPurchaseRecordId(const std::string& ex_id,
                                 MemberPurchaseRecordDTO& dto);
  static ServiceResult removeByMemberPurchaseRecordId(const std::string& ex_id);
  static ServiceResult getByPage(const int page, const int page_size);
  static ServiceResult getAll();
};
